package com.example.iptest.test;

import com.alibaba.fastjson.JSON;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * @author zbc
 * @description TODO
 * @ClassName {name}
 * @email 2010_10_zhong@sina.com
 * @date 2020/11/13 15:26
 */
public class Main {

   /* public static void main(String[] args) {
        int i = 3;
        int j = (1 << i) - 1;

        int k = 2 >> i;

        System.out.println(j);
        System.out.println(k);

    }*/


  /*  public static void main(String[] args) {
        StringBuffer buffer = new StringBuffer();
        buffer.append("192.168.0.1").append(",").append("192.168.0.2");
        Pattern pattern = Pattern.compile("192.168.0.1");
        Matcher matcher = pattern.matcher(buffer.toString());
        if (matcher.find()){
            System.out.println(matcher.group());
            System.out.println("true");
        }else {
            System.out.println("false");
        }
    }*/


/*    public static void main(String[] args) {
        StringBuffer buffer = new StringBuffer();
        buffer.append("12334345");
        System.out.println(buffer.toString());
        buffer.setLength(0);
        System.out.println("----"         + buffer.toString());
    }*/

/*
    public static void main(String[] args) {
        String str = "123.456.789";

        String[] split = str.split("\\.");
        for (int i = 0; i < split.length; i++) {
            System.out.println(split[i]);
        }
    }
*/

    public static void main(String[] args) {
        try {
            JSON.toJSON("");
            JSON.toJSONString(null);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }


}
